/*
 * Copyright © 2017 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
*/
$grayed-out-color: #d1d1d1;
$highlight-color: lighten(#80d8ff, 10%);
$text-selection-color: #40c4ff;

.cut-directive {
  z-index: 999;

  &.dataprep-table {
    height: 100%;
    table {
      colgroup {
        col.highlight-column {
          background-color: $highlight-color;
        }
      }
      &.table.table-bordered {
        .thead-inverse {
          th {
            padding: 0.5rem 0.75rem;
            &:first-child {
              width: 1px;
            }
          }
        }
      }
      td,
      th {
        &.gray-out {
          color: $grayed-out-color;
          user-select: none;
        }
      }
      td.cl-highlight,
      td.cl-highlight div.cl-highlight {
        &::selection,
        [id*="highlight-cell-"] {
          background: $text-selection-color;
        }
      }
    }
  }
}

.popover {
  &.highlight-popover-element {
    z-index: 999;
  }
  &[class*="highlight-popover-out-of-bounds-"] {
    display: none;
  }
  .cut-directive-popover {
    font-size: 13px;
    .popover-content {
      .col-input-container {
        margin: 10px 0;
      }
      input {
        margin: 5px 0;
      }
    }
  }
}
